home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / cool.lha / lice / Makeclassestargs < prev    next >
Text File  |  1991-09-04  |  2KB  |  80 lines

  1. #
  2. # Copyright (C) 1991 Texas Instruments Incorporated.
  3. #
  4. # Permission is granted to any individual or institution to use, copy, modify,
  5. # and distribute this software, provided that this complete copyright and
  6. # permission notice is maintained, intact, in all copies and supporting
  7. # documentation.
  8. #
  9. # Texas Instruments Incorporated provides this software "as is" without
  10. # express or implied warranty.
  11. #
  12.  
  13. .SUFFIXES: .a .C .o
  14.  
  15. .C.o:
  16.     $(CC) $(CCFLAGS) $(DEFINES) $(INCLUDES) $*.C
  17.  
  18. $(LIBNAME): $(LIBDIR)/$(LIBPRE)$(LIBNAME)$(LIBSUF)
  19.  
  20. $(LIBDIR)/$(LIBPRE)$(LIBNAME)$(LIBSUF): $(OBJECTS)
  21.     $(AR) $(ARFLAGS) $(LIBDIR)/$(LIBPRE)$(LIBNAME)$(LIBSUF) $?
  22.     $(RANLIB) $(LIBDIR)/$(LIBPRE)$(LIBNAME)$(LIBSUF)
  23.  
  24. $(SUBDIRS): always
  25.     $(CD) $@; $(MAKE) $(TARGET)
  26.  
  27. all: $(LIBNAME)
  28.     @for DIR in $(SUBDIRS) ''; do\
  29.              if test $$DIR; then\
  30.             $(MAKE) TARGET=$@ $$DIR;\
  31.          fi\
  32.          done
  33.  
  34. allclean: clean
  35.     @for DIR in $(SUBDIRS) ''; do\
  36.              if test $$DIR; then\
  37.             $(MAKE) TARGET=$@ $$DIR;\
  38.          fi\
  39.          done
  40.  
  41. alldepend: depend
  42.     @for DIR in $(SUBDIRS) ''; do\
  43.              if test $$DIR; then\
  44.             $(MAKE) TARGET=$@ $$DIR;\
  45.          fi\
  46.          done
  47.  
  48. allinstall: install
  49.     @for DIR in $(SUBDIRS) ''; do\
  50.              if test $$DIR; then\
  51.             $(MAKE) TARGET=$@ $$DIR;\
  52.          fi\
  53.          done
  54.  
  55. alllink: link
  56.     @for DIR in $(SUBDIRS) ''; do\
  57.              if test $$DIR; then\
  58.             $(MAKE) TARGET=$@ $$DIR;\
  59.          fi\
  60.          done
  61.  
  62. always:
  63.  
  64. clean:
  65.     - $(RM) $(OBJECTS) $(BACKUPS)
  66.  
  67. depend: $(HEADERS) $(SOURCES)
  68.     $(MKDEPEND) $(DEFINES) $(INCLUDES) $(HEADERS) $(SOURCES)
  69.  
  70. install:
  71.  
  72. link:
  73.     @for HEADER in $(HEADERS) ''; do\
  74.          if test $$HEADER; then\
  75.             $(ECHO) "  Creating symbolic link for " $$HEADER;\
  76.             $(RM) $(LINKDIR)/$$HEADER;\
  77.             $(LN) $(CURDIR)$$HEADER $(LINKDIR);\
  78.          fi\
  79.      done
  80.